#include "stdafx.h"
#include "DebugObject.h"
#include "dxdebug.h"

void CDebugAABB::CreateBox(D3DXVECTOR3 pos, D3DXVECTOR3 dim, DWORD color)
{
	this->m_vDim = dim;
	this->m_vPos = pos;
	this->m_vColor = color;
	
	m_eType = BASEOBJECT;
}

void CDebugAABB::Render()
{
	DrawCube(g_pD3DDevice, m_vPos, m_vDim, m_vColor);
}

void CDebugAABB::Update(float dt)
{

}

void OBBEnvironment::Create(vec3f v[8], DWORD color)
{
	this->m_vVerts[0] = v[0];
	this->m_vVerts[1] = v[1];
	this->m_vVerts[2] = v[2];
	this->m_vVerts[3] = v[3];
	this->m_vVerts[4] = v[4];
	this->m_vVerts[5] = v[5];
	this->m_vVerts[6] = v[6];
	this->m_vVerts[7] = v[7];

	this->m_vColor = color;
	m_eType = BASEOBJECT;
}

void OBBEnvironment::Render()
{
	DrawOBB(g_pD3DDevice, m_vVerts, m_vColor);
}

void OBBEnvironment::Update(float dt)
{

}